package com.rt.system.service.impl;

import java.util.List;
import com.rt.common.utils.DateUtils;
import com.rt.system.domain.RtAnswerData;
import com.rt.system.mapper.RtAnswerDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rt.system.mapper.RtDifficultyLogDetailMapper;
import com.rt.system.domain.RtDifficultyLogDetail;
import com.rt.system.service.IRtDifficultyLogDetailService;

/**
 * 难易度调整日志（明细）Service业务层处理
 * 
 * @author Yg
 * @date 2022-04-21
 */
@Service
public class RtDifficultyLogDetailServiceImpl implements IRtDifficultyLogDetailService 
{
    @Autowired
    private RtDifficultyLogDetailMapper rtDifficultyLogDetailMapper;

    @Autowired
    private RtAnswerDataMapper rtAnswerDataMapper;

    /**
     * 查询难易度调整日志（明细）
     * 
     * @param id 难易度调整日志（明细）主键
     * @return 难易度调整日志（明细）
     */
    @Override
    public RtDifficultyLogDetail selectRtDifficultyLogDetailById(Long id)
    {
        return rtDifficultyLogDetailMapper.selectRtDifficultyLogDetailById(id);
    }

    /**
     * 查询难易度调整日志（明细）列表
     * 
     * @param rtDifficultyLogDetail 难易度调整日志（明细）
     * @return 难易度调整日志（明细）
     */
    @Override
    public List<RtDifficultyLogDetail> selectRtDifficultyLogDetailList(RtDifficultyLogDetail rtDifficultyLogDetail)
    {
        return rtDifficultyLogDetailMapper.selectRtDifficultyLogDetailList(rtDifficultyLogDetail);
    }

    /**
     * 新增难易度调整日志（明细）
     * 
     * @param rtDifficultyLogDetail 难易度调整日志（明细）
     * @return 结果
     */
    @Override
    public int insertRtDifficultyLogDetail(RtDifficultyLogDetail rtDifficultyLogDetail)
    {
        return rtDifficultyLogDetailMapper.insertRtDifficultyLogDetail(rtDifficultyLogDetail);
    }

    /**
     * 修改难易度调整日志（明细）
     * 
     * @param rtDifficultyLogDetail 难易度调整日志（明细）
     * @return 结果
     */
    @Override
    public int updateRtDifficultyLogDetail(RtDifficultyLogDetail rtDifficultyLogDetail)
    {
        return rtDifficultyLogDetailMapper.updateRtDifficultyLogDetail(rtDifficultyLogDetail);
    }

    /**
     * 批量删除难易度调整日志（明细）
     * 
     * @param ids 需要删除的难易度调整日志（明细）主键
     * @return 结果
     */
    @Override
    public int deleteRtDifficultyLogDetailByIds(Long[] ids)
    {
        return rtDifficultyLogDetailMapper.deleteRtDifficultyLogDetailByIds(ids);
    }

    /**
     * 删除难易度调整日志（明细）信息
     * 
     * @param id 难易度调整日志（明细）主键
     * @return 结果
     */
    @Override
    public int deleteRtDifficultyLogDetailById(Long id)
    {
        return rtDifficultyLogDetailMapper.deleteRtDifficultyLogDetailById(id);
    }
}
